<%@ page import="com.liang.pojo.People" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>


<%
    //People people = new People();
    //people.setId();
    //people.setAddress();
    //people.setAge();
    //people.setName();
%>

<jsp:useBean id="people" class="com.liang.pojo.People" scope="page"></jsp:useBean>
<jsp:setProperty name="people" property="address" value="深圳"></jsp:setProperty>
<jsp:setProperty name="people" property="id" value="1"></jsp:setProperty>
<jsp:setProperty name="people" property="age" value="23"></jsp:setProperty>
<jsp:setProperty name="people" property="name" value="caicai"></jsp:setProperty>

姓名：<jsp:getProperty name="people" property="name"/>
id：<jsp:getProperty name="people" property="id"/>
</body>
</html>
